package com.lmx.videoplay;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.support.multidex.MultiDex;

import com.lmx.videoplay.util.SharedPreferencesUtil;

import org.xutils.x;

/**
 * Author : Z-JC
 * Date : 2020/3/9
 * Description :
 */
public class App extends Application {

    public static Context context;

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(base);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        x.Ext.init(this);//初始化xUtils
        x.Ext.setDebug(false);//开启会影响性能
        SharedPreferencesUtil.getInstance(context);
    }
}